﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace IDAL
{
    public interface IUserInfoDAL
    {
    //////////////////////////////////////////
      //  private int _UI_userId;
      //  private string _UI_userName;
      //  private string _UI_password;
      //  private string _UI_mailAddr;
      //  private string _UI_nickName;
      //  private int _UI_gender;
      //  private System.DateTime _UI_birthday;
      //  private string _UI_qqNumber;
      //  private string _UI_phoneNumber;
      //  private string _UI_country;
     //   private string _UI_province;
     //   private string _UI_city;
      //  private System.Nullable<System.DateTime> _UI_regTime;
      //  private string _UI_remark;
      /////////////////////////////////////////

        /// <summary>
        /// 增加一个userInfor
        /// </summary>
        bool Add(Model.UserInfo user);


        /// <summary>
        /// 删除一个userInfor通过ID
        /// </summary>
        bool UserDeleteById(int userId);


        /// <summary>
        /// 修改一个userInfor
        /// </summary>
        bool Update(Model.UserInfo user);


        /// <summary>
        /// 查询一个userInfor通过Id,并返回对象
        /// </summary>
        Model.UserInfo userIdUserInfo(int userId);


        /// <summary>
        /// 查询一个userInfor通过name,并返回对象
        /// </summary>
        Model.UserInfo userNameUserInfo(string userName);


    }
}
